package com.zpark.sports.service.impl;

import com.zpark.sports.service.IUserService;
import com.zpark.sports.service.exception.DataContentException;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements IUserService {
    @Override
    public List<Integer> test(Integer num) throws DataContentException {
        //正常处理业务
        //校验数据，假设数据不合法
        if(num>100){
            throw new DataContentException("num大于100，数据不合法");

        }
        //后续业务处理
        return null;
    }
}
